package
{
	import com.huangssssx.loader.ConfigLoader;
	import com.huangssssx.loader.ILoader;
	import com.huangssssx.loader.ImageLoader;
	import com.huangssssx.loader.ResManager;
	import com.huangssssx.utils.ImageUtil;
	import com.huangssssx.utils.ImageZoom;
	
	import fl.controls.Button;
	
	import flash.display.Bitmap;
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	
	public class ASGAME extends Sprite
	{
		private var house:Bitmap = null;
		public function ASGAME()
		{
			addEventListener(Event.ENTER_FRAME,onMainCycly);
			init();
		}
		
		private function init():void
		{
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			var configLoader:ConfigLoader = new ConfigLoader();
			configLoader.load("../conf/conf.xml",loaderBack);
		}
		
		private function loaderBack():void
		{
			var loader:ILoader = new ImageLoader();
			loader.load("back/start.png",function():void{
				house = ResManager.getInstance().getRes(ResManager.RESOURCE_IMAGE,"back/start.png") as Bitmap;
				var h:Bitmap = new Bitmap(ImageUtil.uniformScanBitmapData(house,1679,964,false,false));
				addChild(h);
			});
		}
		
		
		private function onMainCycly(event:Event):void
		{
			
		}
		
		//初始化舞台上的所有部件
		private function initStageObject():void
		{
			
		
		}
	}
}